//
//  BinningContainerCell.m
//  ChangJiuGroup
//
//  Created by Hank on 2017/11/17.
//  Copyright © 2017年 周昊. All rights reserved.
//

#import "BinningContainerCell.h"

@implementation BinningContainerCell

// 设置数据
- (void)setData:(NSDictionary *)dataDic
{
    _barCodeLabelName.text = [[dataDic allKeys]firstObject];
    
    if ([_barCodeLabel.text isEqualToString:DefaultStents] && self.indexPath.row == 1 && [_barCodeLabelName.text isEqualToString:DefaultSteelNo]) {
        _barCodeLabel.text = DefaultTray;
    }
}
// 去除分割线
- (UIView *)lineView
{
    return [[UIView alloc]init];
}

#pragma mark - Action
// 编码扫描 Action
- (IBAction)codingBtnAction:(UIButton *)sender
{
    _containerClickBlock(self.indexPath, @"1");
}

// GPS编码 Action
- (IBAction)GPSBtnAction:(UIButton *)sender
{
    _containerClickBlock(self.indexPath, @"2");
}

// 修改支架/托盘 GPS编码
- (IBAction)changeCodeAction:(UIButton *)sender
{
    //修改支架/托盘 GPS编码
    _changeCodeBlock(self.indexPath, [NSString stringWithFormat:@"%ld",sender.tag]);
}

@end
